# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         dem02
# Description:
# Author:       98745
# Date:         2019/3/10
#-------------------------------------------------------------------------------

import os
f=open('./pan.txt','r+')
url=''
while True:
    url = f.readline()
    url = url.rstrip()
    if url == '':
        break;
    else:
        print(url)

print('--------------')
f.seek(0)
print(f.readlines())
f.write('https://jiketiku.com'+os.linesep)
f.close()
f=open('./pan.txt','a+')
list=['https://geekori.com'+os.linesep,'https://www.google.com'+os.linesep]
f.writelines(list)
f.close()